package adapter;

/**
 * @author: Alexander Martyushov
 */
public class DuckAdapter implements Turkey {

    Duck duck;

    public DuckAdapter(Duck duck){
        this.duck = duck;
    }

    public void gobble() {
        duck.quak();
    }

    public void fly() {
        duck.fly();
        duck.fly();
    }
}
